package com.heima.admin.controller;

import com.heima.admin.service.AdSensitiveService;
import com.heima.admin.service.AdUserService;
import com.heima.model.common.admin.dto.AdSensitive;
import com.heima.model.common.admin.dto.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(path = "/api/v1/sensitive")

public class AdSensitiveController {

    @Resource
    private AdSensitiveService adSensitiveService;

    @PostMapping(path = "/save")
    public ResponseResult save(@RequestBody AdSensitive dto){
        return adSensitiveService.save(dto);
    }
}
